package com.technology.collection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class CollectionsUsing {

	public static void main(String[] args) {
		List<String> initialList = new ArrayList<String>();
//		initialList.add("Test");
//		initialList.add("Hello");
//		initialList.add("123");
		Collections.addAll(initialList, "Test", "Hello", "123", "5452");
		
		System.out.println(initialList);
		List<String> helpList = new ArrayList<String>(){
			{
				add("Ivan");
				add("Elene");
				add("Vladimir");
			}	
		};
		
		Collections.copy(initialList, helpList);
		System.out.println(helpList);
		
		Collections.shuffle(helpList);
		System.out.println(helpList);
		
		System.out.println(new ArrayList<Integer>(Collections.singletonList(1)));
		
		Collections.fill(helpList, "1");
		System.out.println(helpList);
		
	}

}
